package com.multi.framework.config;

import com.multi.framework.interceptor.APPJwtAuthenticationTokenInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Description 小程序webMvc控制
 * @ClassName APPWebMvcConfigurer
 * @Author pzj
 * @Data 2024/12/3 17:16
 */
@Configuration
public class APPWebMvcConfigurer implements WebMvcConfigurer {


    @Autowired
    private APPJwtAuthenticationTokenInterceptor appJwtAuthenticationTokenInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(appJwtAuthenticationTokenInterceptor).addPathPatterns("/public/getInfo","/app/**");
    }
}
